home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / fair_tal.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  67.8 KB  |  2,758 lines

  1. function _DWInit()
  2. {
  3.    _DW_2A = null;
  4.    _DW_2B = null;
  5.    _DW_2C = null;
  6.    _DW_2D = null;
  7.    _DW_2E = null;
  8.    _DW_2F = 400;
  9.    _DW_30 = new Array();
  10.    _DW_31 = null;
  11.    _DW_32 = null;
  12.    _DW_33 = null;
  13.    _DW_34 = 100;
  14.    _DW_waiting_for_page = 0;
  15.    _DW_bookmarks = new Array();
  16.    _DW_bookmarks.current_bookmark = 0;
  17.    _DW_bookmarks.multiple_bookmarks = 0;
  18.    _DW_bookmarks_cookie = null;
  19.    _DW_35 = null;
  20. }
  21. function _DWInitPublication(name, double_click, normal_cursor, busy_cursor, reset, reset_page, reset_chapter, exit_page, exit_chapter, exit_time, drcm, frame_rate, multiple_bookmarks)
  22. {
  23.    _DWInit();
  24.    _DW_2F = double_click;
  25.    _DW_frame_rate = frame_rate;
  26.    _DW_bookmarks.multiple_bookmarks = multiple_bookmarks;
  27.    _DW_publication = new Object();
  28.    _DW_publication._DW_name = name;
  29.    _DW_publication._DW_1 = 0;
  30.    _DW_publication._DW_2 = 1;
  31.    _DW_publication._DW_code = 0;
  32.    _DW_publication._DW_3 = "Publication";
  33.    _DW_publication._DW_object = new _ILMTreeObject(_DW_publication);
  34.    _DW_publication._DW_normal_cursor = normal_cursor;
  35.    _DW_publication._DW_busy_cursor = busy_cursor;
  36.    _DW_publication._DW_exit_page = exit_page;
  37.    _DW_publication._DW_exit_chapter = exit_chapter;
  38.    _DW_publication._DW_exit_time = exit_time;
  39.    _DW_publication._DW_page_variables = new Object();
  40.    _DW_publication._DW_0 = new Array();
  41.    if(drcm)
  42.    {
  43.       getUrl("FSCommand:showmenu", "false");
  44.    }
  45.    _DWLoadBookmarks();
  46. }
  47. function _DWLoadBookmarks()
  48. {
  49.    _DW_bookmarks_cookie = null;
  50.    getURL("FSCommand:LoadBookmarks","");
  51.    var update = new Object();
  52.    update.Update = _DWLoadBookmarksUpdate;
  53.    _DWAddUpdate(update);
  54. }
  55. function _DWLoadBookmarksUpdate()
  56. {
  57.    if(_DW_bookmarks_cookie == null)
  58.    {
  59.       return undefined;
  60.    }
  61.    Print("cookie loaded=" + _DW_bookmarks_cookie + "\n");
  62.    var bookmarks = new Array();
  63.    var unescaped_pages = unescape(_DW_bookmarks_cookie);
  64.    bookmarks = unescaped_pages.split(",");
  65.    var i = 0;
  66.    while(i < bookmarks.length)
  67.    {
  68.       var bookmark = new Object();
  69.       var _loc0_ = null;
  70.       i = (_loc0_ = eval("i")) + 1;
  71.       bookmark.chapter_code = parseInt(bookmarks[_loc0_]);
  72.       i = (_loc0_ = eval("i")) + 1;
  73.       bookmark.index = parseInt(bookmarks[_loc0_]);
  74.       bookmark.page_name = unescape(bookmarks[i]);
  75.       _root._DW_bookmarks.push(bookmark);
  76.       i = (_loc0_ = eval("i")) + 1;
  77.       _loc0_;
  78.    }
  79.    _DWRemoveUpdate(this);
  80. }
  81. function _DWCheckFlashVersion()
  82. {
  83.    var player_version = _root.$version;
  84.    var major_version = player_version.charAt(player_version.indexOf(" ") + 1);
  85.    if(major_version >= "5")
  86.    {
  87.       play();
  88.    }
  89. }
  90. function _DWInitChapter(code, name, panel, first_index, total_pages)
  91. {
  92.    var chapter = new Object();
  93.    chapter._DW_name = name;
  94.    chapter._DW_1 = 0;
  95.    chapter._DW_2 = 2;
  96.    chapter._DW_code = code;
  97.    chapter._DW_3 = "Chapter";
  98.    chapter._DW_object = new _ILMTreeObject(chapter);
  99.    chapter._DW_8 = panel;
  100.    chapter._DW_6 = first_index;
  101.    chapter._DW_7 = total_pages;
  102.    _DW_publication._DW_0.push(chapter);
  103.    if(panel == - 2)
  104.    {
  105.       chapter._DW_8 = 0;
  106.    }
  107.    if(_DW_30[chapter._DW_8] == undefined)
  108.    {
  109.       var view = new Object();
  110.       view._DW_8 = chapter._DW_8;
  111.       view._DW_9 = null;
  112.       view._DW_view = panel != - 2 ? this["Panel" + chapter._DW_8] : this;
  113.       view._DW_A = new Array();
  114.       view._DW_B = view._DW_A.push(panel != - 2 ? 1 : 2);
  115.       _DW_30[chapter._DW_8] = view;
  116.    }
  117.    chapter._DW_view = _DW_30[chapter._DW_8];
  118. }
  119. function _DWFindChapter(code)
  120. {
  121.    var chapters = _DW_publication._DW_0;
  122.    var i = 0;
  123.    while(i < chapters.length)
  124.    {
  125.       if(chapters[i]._DW_code == code)
  126.       {
  127.          return chapters[i];
  128.       }
  129.       var _loc0_ = null;
  130.       i = (_loc0_ = eval("i")) + 1;
  131.       _loc0_;
  132.    }
  133. }
  134. function _DWInitPage(page, name, code, chapter_code, page_index, show_for, next_page, next_chapter, right, bottom)
  135. {
  136.    if(page._name.substring(0,7) == "_DWNull")
  137.    {
  138.       return undefined;
  139.    }
  140.    page._DW_name = name;
  141.    page._DW_1 = 0;
  142.    page._DW_2 = 4;
  143.    page._DW_code = code;
  144.    page._DW_3 = "Page";
  145.    var obj = _DW_publication._DW_page_variables[code];
  146.    if(obj == undefined)
  147.    {
  148.       obj = _DWGetNewScriptObject(page);
  149.       _DW_publication._DW_page_variables[code] = obj;
  150.    }
  151.    page._DW_object = obj;
  152.    page._DW_chapter = _DWFindChapter(chapter_code);
  153.    page._DW_C = page_index;
  154.    page._DW_D = show_for;
  155.    page._DW_E = next_page;
  156.    page._DW_F = next_chapter;
  157.    page._DW_10 = 0;
  158.    page._DW_11 = 0;
  159.    page._DW_12 = right;
  160.    page._DW_13 = bottom;
  161.    page._DW_delay = 0;
  162. }
  163. function _DWInitVariables(obj, variables)
  164. {
  165.    if(obj._DW_3 == undefined)
  166.    {
  167.       return undefined;
  168.    }
  169.    obj._DW_variables = variables;
  170.    _DWResetVariables(obj,false);
  171. }
  172. function _DWResetVariables(obj, force)
  173. {
  174.    var list = obj._DW_object;
  175.    var variables = obj._DW_variables;
  176.    var i = 0;
  177.    while(i < variables.length)
  178.    {
  179.       if(!variables[i + 2] || list[variables[i]] == undefined || force)
  180.       {
  181.          list[variables[i]] = variables[i + 1];
  182.       }
  183.       i = eval("i") + 3;
  184.    }
  185.    _DWUpdateVariableCallbacks(null);
  186. }
  187. function _DWStartPage(page)
  188. {
  189.    if(page._DW_3 == undefined)
  190.    {
  191.       return undefined;
  192.    }
  193.    if(page._DW_delay)
  194.    {
  195.       page._DW_start_delayed = true;
  196.       return undefined;
  197.    }
  198.    _DWSetCursor(null);
  199.    _DW_9 = page;
  200.    page._DW_chapter._DW_view._DW_9 = page;
  201.    _DWTriggerEvents(page,"PreShow");
  202.    var transition = page._DW_show;
  203.    if(transition)
  204.    {
  205.       page._visible = false;
  206.       page._DW_visible = 1;
  207.       _DWSyncTransition(true,page,transition);
  208.       transition._visible = true;
  209.       transition.gotoAndPlay(1);
  210.    }
  211.    else
  212.    {
  213.       _DWShowPageComplete(page);
  214.    }
  215. }
  216. function _DWShowPageComplete(page)
  217. {
  218.    var children = page._DW_0;
  219.    if(children)
  220.    {
  221.       var i = 0;
  222.       while(i < children.length)
  223.       {
  224.          _DWStartObject(children[i]);
  225.          var _loc0_ = null;
  226.          i = (_loc0_ = eval("i")) + 1;
  227.          _loc0_;
  228.       }
  229.    }
  230.    var script_children = page._DW_script_children;
  231.    if(script_children)
  232.    {
  233.       var i = 0;
  234.       while(i < script_children.length)
  235.       {
  236.          script_children[i].StartObject();
  237.          i = (_loc0_ = eval("i")) + 1;
  238.          _loc0_;
  239.       }
  240.    }
  241.    if(page._DW_D != - 1)
  242.    {
  243.       var goto_action = new Object();
  244.       goto_action.CallAction = _DWActionGotoPage;
  245.       goto_action.chapter = page._DW_F;
  246.       goto_action.page = page._DW_E;
  247.       goto_action.time = getTimer() + page._DW_D;
  248.       _DWAddAction(goto_action);
  249.    }
  250.    _DWTriggerEvents(page,"OnShow");
  251.    _DWInitActions(page);
  252. }
  253. function _DWGetVariable(name, obj)
  254. {
  255.    var page = _DWGetPage(obj);
  256.    var vars = page && page._DW_object;
  257.    if(vars != undefined && vars[name] != undefined)
  258.    {
  259.       return vars[name];
  260.    }
  261.    vars = _DW_publication._DW_object;
  262.    if(vars != undefined && vars[name] != undefined)
  263.    {
  264.       return vars[name];
  265.    }
  266.    return "";
  267. }
  268. function _DWSetVariable(name, value, obj)
  269. {
  270.    var page = _DWGetPage(obj);
  271.    var vars = page && page._DW_object;
  272.    if(vars != undefined && vars[name] != undefined)
  273.    {
  274.       vars[name] = value;
  275.    }
  276.    else
  277.    {
  278.       vars = _DW_publication._DW_object;
  279.       vars[name] = value;
  280.    }
  281.    _DWUpdateVariableCallbacks(name);
  282. }
  283. function _DWGetPage(obj)
  284. {
  285.    while(obj)
  286.    {
  287.       if(obj._DW_3 == "Page")
  288.       {
  289.          return obj;
  290.       }
  291.       obj = obj._parent;
  292.    }
  293. }
  294. function _DWUpdateVariableCallbacks(name)
  295. {
  296.    var pos = _DW_31;
  297.    while(pos)
  298.    {
  299.       var callback = pos;
  300.       pos = pos.callback_next;
  301.       callback.VariableChanged(name,this);
  302.    }
  303. }
  304. function _DWTick()
  305. {
  306.    if(_DW_waiting_for_page == 2)
  307.    {
  308.       return undefined;
  309.    }
  310.    if(_DW_waiting_for_page)
  311.    {
  312.       if(_framesloaded < _DW_waiting_for_page)
  313.       {
  314.          _DWDoUpdate();
  315.          _DWUpdateCursor();
  316.          return undefined;
  317.       }
  318.       this.gotoAndStop(_DW_waiting_for_page);
  319.       _DW_waiting_for_page = 0;
  320.       _DWSetCursor(null);
  321.    }
  322.    _DWDoActions();
  323.    _DWDoUpdate();
  324.    _DWDoActions();
  325.    _DWDoActions();
  326.    if(_DW_drag_object)
  327.    {
  328.       _DWUpdateDrag();
  329.    }
  330.    _DWCheckInputFocus();
  331.    _DWUpdateCursor();
  332. }
  333. function _DWMouseMove()
  334. {
  335.    if(_DW_waiting_for_page)
  336.    {
  337.       return undefined;
  338.    }
  339.    if(_DW_35)
  340.    {
  341.       _DWMouseMoveEvent(_DW_35);
  342.    }
  343.    else
  344.    {
  345.       var i = 0;
  346.       while(i < _DW_30.length)
  347.       {
  348.          _DWMouseMoveEvent(_DW_30[i]._DW_9);
  349.          var _loc0_ = null;
  350.          i = (_loc0_ = eval("i")) + 1;
  351.          _loc0_;
  352.       }
  353.    }
  354. }
  355. function _DWMouseMoveEvent(obj)
  356. {
  357.    if(obj == null)
  358.    {
  359.       return undefined;
  360.    }
  361.    var children = !_DW_35 ? obj._DW_0 : null;
  362.    if(children)
  363.    {
  364.       var i = children.length - 1;
  365.       while(i >= 0)
  366.       {
  367.          var child = children[i];
  368.          if(!(child._DW_visible != 2 || !child._DW_enabled))
  369.          {
  370.             _DWMouseMoveEvent(child);
  371.             var hit = child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent);
  372.             if(hit != child._DW_hit)
  373.             {
  374.                child._DW_hit = hit;
  375.                if(hit)
  376.                {
  377.                   _DWEnter(child);
  378.                }
  379.                else
  380.                {
  381.                   _DWLeave(child);
  382.                }
  383.             }
  384.             if(hit && child._DW_26 && child._DW_state == "Down" && !_DW_drag_object)
  385.             {
  386.                if(_DWBeginDrag(child))
  387.                {
  388.                   return undefined;
  389.                }
  390.             }
  391.          }
  392.          var _loc0_ = null;
  393.          i = (_loc0_ = eval("i")) - 1;
  394.          _loc0_;
  395.       }
  396.    }
  397.    _DWTriggerEvents(obj,"OnMouseMove");
  398. }
  399. function _DWEnter(obj)
  400. {
  401.    with(obj)
  402.    {
  403.       if(!_DW_enabled)
  404.       {
  405.          return undefined;
  406.       }
  407.       _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 2 : 6);
  408.       _DW_state = "Over";
  409.       _DWTriggerEvents(obj,"OnMouseOver");
  410.       if(obj._DW_over_cursor)
  411.       {
  412.          _DWSetCursor(obj._DW_over_cursor);
  413.       }
  414.    }
  415. }
  416. function _DWLeave(obj)
  417. {
  418.    with(obj)
  419.    {
  420.       if(!_DW_enabled)
  421.       {
  422.          return undefined;
  423.       }
  424.       if(obj._DW_3 == "Button" && obj._DW_button_mode == 0)
  425.       {
  426.          _DWButtonUp(obj);
  427.       }
  428.       _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 1 : 5);
  429.       _DW_state = "Normal";
  430.       _DWTriggerEvents(obj,"OnMouseOut");
  431.       _DW_auto_handle = - 1;
  432.       if(obj._DW_over_cursor || obj._DW_down_cursor)
  433.       {
  434.          _DWSetCursor(null);
  435.       }
  436.    }
  437. }
  438. function _DWMouseDown()
  439. {
  440.    if(_DW_waiting_for_page)
  441.    {
  442.       return undefined;
  443.    }
  444.    if(_DW_35)
  445.    {
  446.       _DWMouseDownEvent(_DW_35);
  447.    }
  448.    else
  449.    {
  450.       var i = 0;
  451.       while(i < _DW_30.length)
  452.       {
  453.          _DWMouseDownEvent(_DW_30[i]._DW_9);
  454.          var _loc0_ = null;
  455.          i = (_loc0_ = eval("i")) + 1;
  456.          _loc0_;
  457.       }
  458.    }
  459. }
  460. function _DWMouseDownEvent(obj)
  461. {
  462.    var children = !_DW_35 ? obj._DW_0 : null;
  463.    var trigger = "OnLeftDown";
  464.    if(Key.isDown(16))
  465.    {
  466.       trigger = eval("trigger") + "S";
  467.    }
  468.    if(Key.isDown(17))
  469.    {
  470.       trigger = eval("trigger") + "C";
  471.    }
  472.    if(Key.isDown(18))
  473.    {
  474.       trigger = eval("trigger") + "A";
  475.    }
  476.    if(children)
  477.    {
  478.       var i = children.length - 1;
  479.       while(i >= 0)
  480.       {
  481.          var child = children[i];
  482.          if(!(child._DW_visible != 2 || !child._DW_enabled || !child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent)))
  483.          {
  484.             if(!_DWMouseDownEvent(child))
  485.             {
  486.                return false;
  487.             }
  488.             if(child._DW_3 == "Button")
  489.             {
  490.                if(child._DW_button_mode == 0)
  491.                {
  492.                   if(!child._DW_button_down)
  493.                   {
  494.                      _DWButtonDown(child);
  495.                   }
  496.                }
  497.                else if(child._DW_button_mode == 1)
  498.                {
  499.                   if(child._DW_button_down)
  500.                   {
  501.                      child._DW_button_pressed = true;
  502.                   }
  503.                   else
  504.                   {
  505.                      _DWButtonDown(child);
  506.                   }
  507.                }
  508.                else if(!child._DW_button_down)
  509.                {
  510.                   var j = children.length - 1;
  511.                   while(j >= 0)
  512.                   {
  513.                      if(j != i)
  514.                      {
  515.                         var other_child = children[j];
  516.                         if(other_child._DW_3 == "Button" && other_child._DW_button_mode == 2 && other_child._DW_button_group == child._DW_button_group)
  517.                         {
  518.                            _DWButtonUp(other_child);
  519.                         }
  520.                      }
  521.                      var _loc0_ = null;
  522.                      j = (_loc0_ = eval("j")) - 1;
  523.                      _loc0_;
  524.                   }
  525.                   _DWButtonDown(child);
  526.                }
  527.             }
  528.             else
  529.             {
  530.                _DWSetAppearance(child,3);
  531.             }
  532.             child._DW_state = "Down";
  533.             if(child._DW_auto_repeat)
  534.             {
  535.                var action = new Object();
  536.                action.CallAction = _DWActionAutoRepeat;
  537.                action.object = child;
  538.                action.time = getTimer() + 400;
  539.                _loc0_ = child._DW_auto_handle = _loc0_ = _loc0_["_DW_auto_handle"] + 1;
  540.                action.handle = _loc0_;
  541.                action.trigger = trigger;
  542.                _DWAddAction(action);
  543.             }
  544.             if(!child._DW_pass_clicks)
  545.             {
  546.                return false;
  547.             }
  548.          }
  549.          i = (_loc0_ = eval("i")) - 1;
  550.          _loc0_;
  551.       }
  552.    }
  553.    _DWTriggerEvents(obj,trigger);
  554.    if(obj._DW_down_cursor)
  555.    {
  556.       _DWSetCursor(obj._DW_down_cursor);
  557.    }
  558.    return true;
  559. }
  560. function _DWMouseUp()
  561. {
  562.    if(_DW_waiting_for_page)
  563.    {
  564.       return undefined;
  565.    }
  566.    if(_DW_drag_object)
  567.    {
  568.       _DWEndDrag();
  569.    }
  570.    var double_click;
  571.    if(_DW_2E && getTimer() - _DW_2E < _DW_2F)
  572.    {
  573.       double_click = true;
  574.       _DW_2E = null;
  575.    }
  576.    else
  577.    {
  578.       double_click = false;
  579.       _DW_2E = getTimer();
  580.    }
  581.    if(_DW_35)
  582.    {
  583.       _DWMouseUpEvent(_DW_35);
  584.    }
  585.    else
  586.    {
  587.       var i = 0;
  588.       while(i < _DW_30.length)
  589.       {
  590.          _DWMouseUpEvent(_DW_30[i]._DW_9,double_click);
  591.          var _loc0_ = null;
  592.          i = (_loc0_ = eval("i")) + 1;
  593.          _loc0_;
  594.       }
  595.    }
  596. }
  597. function _DWMouseUpEvent(obj, double_click)
  598. {
  599.    var children = !_DW_35 ? obj._DW_0 : null;
  600.    if(children)
  601.    {
  602.       var i = children.length - 1;
  603.       while(i >= 0)
  604.       {
  605.          var child = children[i];
  606.          if(!(child._DW_visible != 2 || !child._DW_enabled || !child.hitTest(_root._xmouse,_root._ymouse,child._DW_transparent)))
  607.          {
  608.             if(!_DWMouseUpEvent(child,double_click))
  609.             {
  610.                return false;
  611.             }
  612.             if(child._DW_state == "Down")
  613.             {
  614.                if(child._DW_3 == "Button")
  615.                {
  616.                   if(child._DW_button_mode == 0)
  617.                   {
  618.                      _DWButtonUp(child);
  619.                   }
  620.                   else if(child._DW_button_mode == 1)
  621.                   {
  622.                      if(child._DW_button_pressed)
  623.                      {
  624.                         _DWButtonUp(child);
  625.                      }
  626.                   }
  627.                }
  628.                else
  629.                {
  630.                   _DWSetAppearance(child,2);
  631.                }
  632.                child._DW_state = "Over";
  633.                child._DW_auto_handle = - 1;
  634.                if(!child._DW_pass_clicks)
  635.                {
  636.                   return false;
  637.                }
  638.             }
  639.          }
  640.          var _loc0_ = null;
  641.          i = (_loc0_ = eval("i")) - 1;
  642.          _loc0_;
  643.       }
  644.    }
  645.    if(obj._DW_3 != "Page" && obj._DW_state != "Down")
  646.    {
  647.       return true;
  648.    }
  649.    var trigger = !double_click ? "OnLeftClick" : "OnLeftDouble";
  650.    if(Key.isDown(16))
  651.    {
  652.       trigger = eval("trigger") + "S";
  653.    }
  654.    if(Key.isDown(17))
  655.    {
  656.       trigger = eval("trigger") + "C";
  657.    }
  658.    if(Key.isDown(18))
  659.    {
  660.       trigger = eval("trigger") + "A";
  661.    }
  662.    _DWTriggerEvents(obj,trigger);
  663.    if(obj._DW_down_cursor)
  664.    {
  665.       _DWSetCursor(obj._DW_over_cursor);
  666.    }
  667.    return true;
  668. }
  669. function _DWKeyDown()
  670. {
  671.    if(_DW_waiting_for_page)
  672.    {
  673.       return undefined;
  674.    }
  675.    if(_DW_32 == null)
  676.    {
  677.       var i = 0;
  678.       while(i < _DW_30.length)
  679.       {
  680.          _DWKeyDownEvent(_DW_30[i]._DW_9);
  681.          var _loc0_ = null;
  682.          i = (_loc0_ = eval("i")) + 1;
  683.          _loc0_;
  684.       }
  685.    }
  686.    else
  687.    {
  688.       _DWInputKey(false);
  689.    }
  690. }
  691. function _DWKeyUp()
  692. {
  693.    if(_DW_waiting_for_page)
  694.    {
  695.       return undefined;
  696.    }
  697.    if(_DW_32 != null)
  698.    {
  699.       _DWInputKey(true);
  700.    }
  701. }
  702. function _DWInputKey(up)
  703. {
  704.    var keys = [8,9,13,20,33,34,35,36,37,38,39,40,45,46];
  705.    var is_key = false;
  706.    var i = 0;
  707.    while(i < keys.length)
  708.    {
  709.       if(Key.getCode() == keys[i])
  710.       {
  711.          is_key = true;
  712.       }
  713.       var _loc0_ = null;
  714.       i = (_loc0_ = eval("i")) + 1;
  715.       _loc0_;
  716.    }
  717.    if(is_key == up)
  718.    {
  719.       var obj = eval(_DW_32);
  720.       _DWKeyDownEvent(obj);
  721.    }
  722. }
  723. function _DWKeyDownEvent(obj)
  724. {
  725.    var children = obj._DW_0;
  726.    if(children)
  727.    {
  728.       var i = children.length - 1;
  729.       while(i >= 0)
  730.       {
  731.          var child = children[i];
  732.          if(!(child._DW_visible != 2 || !child._DW_enabled))
  733.          {
  734.             _DWKeyDownEvent(child);
  735.          }
  736.          var _loc0_ = null;
  737.          i = (_loc0_ = eval("i")) - 1;
  738.          _loc0_;
  739.       }
  740.    }
  741.    var trigger = "Key" + new Number(Key.getCode()).toString(16);
  742.    if(Key.isDown(16))
  743.    {
  744.       trigger = eval("trigger") + "S";
  745.    }
  746.    if(Key.isDown(17))
  747.    {
  748.       trigger = eval("trigger") + "C";
  749.    }
  750.    _DWTriggerEvents(obj,trigger);
  751.    return true;
  752. }
  753. function _DWButtonDown(button)
  754. {
  755.    if(!button._DW_button_down)
  756.    {
  757.       _DWOffsetChildren(button,button._DW_button_offset);
  758.    }
  759.    button._DW_button_down = true;
  760.    button._DW_button_pressed = false;
  761.    _DWSetAppearance(button,button._DW_state != "Normal" ? 6 : 5);
  762.    _DWUpdateButtonVar(button);
  763. }
  764. function _DWButtonUp(button)
  765. {
  766.    if(button._DW_button_down)
  767.    {
  768.       _DWOffsetChildren(button,- button._DW_button_offset);
  769.    }
  770.    button._DW_button_down = false;
  771.    button._DW_button_pressed = false;
  772.    _DWSetAppearance(button,button._DW_state != "Normal" ? 2 : 1);
  773.    _DWUpdateButtonVar(button);
  774. }
  775. function _DWUpdateButtonVar(button)
  776. {
  777.    if(button._DW_button_var.length)
  778.    {
  779.       _DWSetVariable(button._DW_button_var,button._DW_button_down,button);
  780.    }
  781.    if(button._DW_button_mode == 2 && button._DW_button_down)
  782.    {
  783.       var g = button._DW_button_group;
  784.       button._DW_group_index = 0;
  785.       _DWGetRadioIndex(_DWGetPage(button),button);
  786.       _DWSetVariable("RADIO_GROUP_" + g + "_ID",button._DW_group_index,button);
  787.       _DWSetVariable("RADIO_GROUP_" + g + "_NAME",button._DW_name,button);
  788.    }
  789. }
  790. function _DWGetRadioIndex(obj, button)
  791. {
  792.    var children = obj._DW_0;
  793.    var i = 0;
  794.    while(i < children.length)
  795.    {
  796.       var child = children[i];
  797.       if(child == button)
  798.       {
  799.          return true;
  800.       }
  801.       if(child._DW_button_mode == 2 && child._DW_button_group == button._DW_button_group)
  802.       {
  803.          var _loc0_ = null;
  804.          _loc0_ = button._DW_group_index = (_loc0_ = _loc0_["_DW_group_index"]) + 1;
  805.          _loc0_;
  806.       }
  807.       if(_DWGetRadioIndex(child,button))
  808.       {
  809.          return true;
  810.       }
  811.       i = (_loc0_ = eval("i")) + 1;
  812.       _loc0_;
  813.    }
  814. }
  815. function _DWOffsetChildren(obj, offset)
  816. {
  817.    var children = obj._DW_0;
  818.    if(children)
  819.    {
  820.       var i = children.length - 1;
  821.       while(i >= 0)
  822.       {
  823.          var child = children[i];
  824.          var _loc0_ = null;
  825.          _loc0_ = child._x = _loc0_["_x"] + offset;
  826.          _loc0_ = child._y = _loc0_["_y"] + offset;
  827.          i = (_loc0_ = eval("i")) - 1;
  828.          _loc0_;
  829.       }
  830.    }
  831.    if(obj._DWIMAGE)
  832.    {
  833.       _loc0_ = obj._DWIMAGE._x = _loc0_["_x"] + offset;
  834.       _loc0_ = obj._DWIMAGE._y = _loc0_["_y"] + offset;
  835.    }
  836. }
  837. function _DWAddUpdate(update)
  838. {
  839.    var pos = _DW_2B;
  840.    while(pos)
  841.    {
  842.       if(pos == update)
  843.       {
  844.          return undefined;
  845.       }
  846.       pos = pos.update_next;
  847.    }
  848.    update.update_next = _DW_2B;
  849.    _DW_2B = update;
  850. }
  851. function _DWRemoveUpdate(update)
  852. {
  853.    if(_DW_2B == update)
  854.    {
  855.       _DW_2B = _DW_2B.update_next;
  856.       return undefined;
  857.    }
  858.    var pos = _DW_2B;
  859.    while(pos.update_next)
  860.    {
  861.       if(pos.update_next == update)
  862.       {
  863.          pos.update_next = pos.update_next.update_next;
  864.          return undefined;
  865.       }
  866.       pos = pos.update_next;
  867.    }
  868. }
  869. function _DWDoUpdate()
  870. {
  871.    var pos = _DW_2B;
  872.    while(pos)
  873.    {
  874.       var update = pos;
  875.       pos = pos.update_next;
  876.       update.Update(this);
  877.    }
  878. }
  879. function _DWAddAction(action)
  880. {
  881.    if(!_DW_2A || action.time < _DW_2A.time)
  882.    {
  883.       action.next = _DW_2A;
  884.       _DW_2A = action;
  885.    }
  886.    else
  887.    {
  888.       var pos = _DW_2A;
  889.       while(pos.next && pos.next.time < action.time)
  890.       {
  891.          pos = pos.next;
  892.       }
  893.       action.next = pos.next;
  894.       pos.next = action;
  895.    }
  896. }
  897. function _DWDoActions()
  898. {
  899.    var time = getTimer();
  900.    while(_DW_2A && time >= _DW_2A.time)
  901.    {
  902.       var action = _DW_2A;
  903.       _DW_2A = _DW_2A.next;
  904.       action.CallAction(action);
  905.    }
  906. }
  907. function _DWActionShow(action)
  908. {
  909.    _DWShowObject(action.object);
  910. }
  911. function _DWActionHide(action)
  912. {
  913.    _DWHideObject(action.object);
  914. }
  915. function _DWActionGotoPage(action)
  916. {
  917.    _DWGotoPage(action.page,action.chapter);
  918. }
  919. function _DWActionAutoRepeat(action)
  920. {
  921.    var obj = action.object;
  922.    if(action.handle == obj._DW_auto_handle && obj._DW_state == "Down" && !_DW_drag_object)
  923.    {
  924.       _DWTriggerEvents(obj,action.trigger);
  925.       action.time = getTimer() + 100;
  926.       _DWAddAction(action);
  927.    }
  928. }
  929. function _DWSetCursor(cursor)
  930. {
  931.    if(!cursor)
  932.    {
  933.       cursor = _DW_publication._DW_normal_cursor;
  934.    }
  935.    if(_DW_33 != cursor)
  936.    {
  937.       if(_DW_33)
  938.       {
  939.          _DW_33._visible = false;
  940.       }
  941.       else
  942.       {
  943.          Mouse.hide();
  944.       }
  945.       _DW_33 = cursor;
  946.       if(_DW_33)
  947.       {
  948.          _DW_33._visible = true;
  949.       }
  950.       else
  951.       {
  952.          Mouse.show();
  953.       }
  954.    }
  955. }
  956. function _DWUpdateCursor()
  957. {
  958.    if(_DW_33)
  959.    {
  960.       _DW_33.x = _root._xmouse;
  961.       _DW_33.y = _root._ymouse;
  962.       this.globalToLocal(_DW_33);
  963.       _DW_33._x = _DW_33.x;
  964.       _DW_33._y = _DW_33.y;
  965.    }
  966. }
  967. function Print(text)
  968. {
  969.    var obj = this;
  970.    while(obj && !obj._DWInitPublication)
  971.    {
  972.       obj = obj._parent;
  973.    }
  974.    var _loc0_ = null;
  975.    _loc0_ = obj._DWPRINTTEXT = _loc0_["_DWPRINTTEXT"] + text;
  976. }
  977. function _DWTriggerEvents(obj, trigger)
  978. {
  979.    var actions = obj._DWActions;
  980.    if(actions == undefined)
  981.    {
  982.       return undefined;
  983.    }
  984.    var i = 0;
  985.    while(i < actions.length)
  986.    {
  987.       actions[i].Trigger(trigger);
  988.       var _loc0_ = null;
  989.       i = (_loc0_ = eval("i")) + 1;
  990.       _loc0_;
  991.    }
  992. }
  993. function _DWInitActions(obj)
  994. {
  995.    _DWInitCloseActions(obj,false,obj);
  996. }
  997. function _DWCloseActions(obj)
  998. {
  999.    _DWInitCloseActions(obj,true,obj);
  1000. }
  1001. function _DWInitCloseActions(obj, close, host)
  1002. {
  1003.    var actions = obj._DWActions;
  1004.    var i = 0;
  1005.    while(i < actions.length)
  1006.    {
  1007.       actions[i].InitClose(close,host);
  1008.       var _loc0_ = null;
  1009.       i = (_loc0_ = eval("i")) + 1;
  1010.       _loc0_;
  1011.    }
  1012.    var text = obj._DW_text;
  1013.    if(!text)
  1014.    {
  1015.       return undefined;
  1016.    }
  1017.    var line_index = 0;
  1018.    while(line_index < text.length)
  1019.    {
  1020.       var line = text[line_index];
  1021.       var item_index = 0;
  1022.       while(item_index < line.length)
  1023.       {
  1024.          if(line[item_index + 2] & 268435456)
  1025.          {
  1026.             var tag_number = line[item_index + 3][1];
  1027.             var actions = obj["_DWLink" + tag_number + "_DWActions"];
  1028.             var i = 0;
  1029.             while(i < actions.length)
  1030.             {
  1031.                actions[i].InitClose(close,host);
  1032.                i = (_loc0_ = eval("i")) + 1;
  1033.                _loc0_;
  1034.             }
  1035.          }
  1036.          item_index = eval("item_index") + 4;
  1037.       }
  1038.       line_index = (_loc0_ = eval("line_index")) + 1;
  1039.       _loc0_;
  1040.    }
  1041. }
  1042. function _DWGotoPage(index, chapter_code)
  1043. {
  1044.    var view = _DWFindChapter(chapter_code)._DW_view;
  1045.    if(view._DW_B + 1 < view._DW_A.length)
  1046.    {
  1047.       view._DW_A.splice(view._DW_B + 1);
  1048.    }
  1049.    view._DW_B = view._DW_A.push(index) - 1;
  1050.    return _DWDoGotoPage(view,index,chapter_code);
  1051. }
  1052. function _DWShowPage(index, chapter_code)
  1053. {
  1054.    var view = _DWFindChapter(chapter_code)._DW_view;
  1055.    if(_framesloaded >= index + 1 || _framesloaded == _totalframes)
  1056.    {
  1057.       if(view._DW_view._currentframe == index + 1)
  1058.       {
  1059.          view._DW_view.gotoAndStop(index + 2);
  1060.       }
  1061.       view._DW_view.gotoAndStop(index + 1);
  1062.    }
  1063.    else
  1064.    {
  1065.       _DW_waiting_for_page = index + 1;
  1066.       _DWSetCursor(_DW_publication._DW_busy_cursor);
  1067.    }
  1068. }
  1069. function _DWDoGotoPage(view, index, chapter_code)
  1070. {
  1071.    var current_page = view._DW_9;
  1072.    _DWStopObject(current_page);
  1073.    _DW_2A = null;
  1074.    _DWStopAllSounds(true,0);
  1075.    if(current_page._DW_hide)
  1076.    {
  1077.       with(current_page)
  1078.       {
  1079.          _visible = false;
  1080.          _DW_visible = 3;
  1081.          view._DW_2D = index + 1;
  1082.          _DWSyncTransition(false,current_page,_DW_hide);
  1083.          _DW_hide._visible = true;
  1084.          _DW_hide.gotoAndPlay(1);
  1085.       }
  1086.    }
  1087.    else
  1088.    {
  1089.       _DWShowPage(index,chapter_code);
  1090.    }
  1091.    return 0;
  1092. }
  1093. function _DWStopSound(snd, fade_out_frame, synch_end)
  1094. {
  1095.    var current_frame = snd._currentframe - snd._DW_sound_start_frame;
  1096.    var end_frame = current_frame + fade_out_frame;
  1097.    if(fade_out_frame && end_frame - fade_out_frame < snd._DW_sound_end_frame)
  1098.    {
  1099.       snd._DW_sound_fade_in_frame = 0;
  1100.       snd._DW_sound_fade_out_frame = current_frame;
  1101.       snd._DW_sound_end_frame = end_frame;
  1102.       snd._DW_sound_repeat_index = 0;
  1103.       snd._DW_sound_repeat = 0;
  1104.    }
  1105.    else
  1106.    {
  1107.       snd.stop();
  1108.       _DWRemoveUpdate(snd._DW_sound_updater);
  1109.       if(synch_end)
  1110.       {
  1111.          _DWSynchEndSound(snd);
  1112.       }
  1113.       if(snd._DW_sound_callback)
  1114.       {
  1115.          var callback = snd._DW_sound_callback;
  1116.          snd._DW_sound_callback = null;
  1117.          callback.Notify(0);
  1118.       }
  1119.    }
  1120.    return 0;
  1121. }
  1122. function _DWStopAllSounds(page_exit, fade_out_frame)
  1123. {
  1124.    var obj = _DW_2B;
  1125.    while(obj)
  1126.    {
  1127.       var sound = obj;
  1128.       obj = obj.update_next;
  1129.       if(sound.snd)
  1130.       {
  1131.          if(!page_exit || sound.snd._DW_sound_stop_page_exit)
  1132.          {
  1133.             _DWStopSound(sound.snd,fade_out_frame,false);
  1134.          }
  1135.       }
  1136.    }
  1137.    return 0;
  1138. }
  1139. function _DWSynchEndSound(snd)
  1140. {
  1141.    var trigger = "SynchEnd" + _DWFormatHex(2,2) + _DWFormatHex(0,2) + _DWFormatHex(snd._DW_code,8);
  1142.    var page = _DWGetPage(snd._DW_sound_host);
  1143.    _DWSendTrigger(page,trigger);
  1144. }
  1145. function _DWLaunchURL(host, url, target)
  1146. {
  1147.    if(url.charAt(0) == "<")
  1148.    {
  1149.       url = _DWGetVariable(url.substr(1,url.length - 2),host) + "";
  1150.    }
  1151.    getURL(url,target);
  1152.    return 0;
  1153. }
  1154. function _DWEvent(triggers, actions)
  1155. {
  1156.    this.triggers = triggers;
  1157.    this.actions = actions;
  1158. }
  1159. function _DW_39(trigger)
  1160. {
  1161.    var i = 0;
  1162.    while(i < this.triggers.length)
  1163.    {
  1164.       if(this.triggers[i] == trigger || typeof trigger == "object" && trigger.Match(this.triggers[i]))
  1165.       {
  1166.          this.actions.Go(null);
  1167.          return undefined;
  1168.       }
  1169.       var _loc0_ = null;
  1170.       i = (_loc0_ = eval("i")) + 1;
  1171.       _loc0_;
  1172.    }
  1173. }
  1174. function _DW_3A(close, host)
  1175. {
  1176.    var i = 0;
  1177.    while(i < this.triggers.length)
  1178.    {
  1179.       if(this.triggers[i].InitClose)
  1180.       {
  1181.          this.triggers[i].InitClose(close,host);
  1182.       }
  1183.       var _loc0_ = null;
  1184.       i = (_loc0_ = eval("i")) + 1;
  1185.       _loc0_;
  1186.    }
  1187.    this.actions.InitClose(close,host);
  1188. }
  1189. function _DWActionList()
  1190. {
  1191.    this.length = arguments.length;
  1192.    var i = 0;
  1193.    while(i < this.length)
  1194.    {
  1195.       this[i] = arguments[i];
  1196.       var _loc0_ = null;
  1197.       i = (_loc0_ = eval("i")) + 1;
  1198.       _loc0_;
  1199.    }
  1200.    this.state = 0;
  1201. }
  1202. function _DW_3B(callback)
  1203. {
  1204.    if(this.state != 0)
  1205.    {
  1206.       return 0;
  1207.    }
  1208.    this.pos = 0;
  1209.    this.callback = callback;
  1210.    return this.Run();
  1211. }
  1212. function _DW_3C()
  1213. {
  1214.    while(this.pos < this.length)
  1215.    {
  1216.       this.state = this[this.pos].Go(this);
  1217.       var _loc0_ = null;
  1218.       _loc0_ = this.pos = (_loc0_ = _loc0_["pos"]) + 1;
  1219.       _loc0_;
  1220.       if(this.state == 1)
  1221.       {
  1222.          return 1;
  1223.       }
  1224.    }
  1225.    this.state = 0;
  1226.    return 0;
  1227. }
  1228. function _DW_3D(status)
  1229. {
  1230.    if(status == 0)
  1231.    {
  1232.       if(this.Run() == 1)
  1233.       {
  1234.          return undefined;
  1235.       }
  1236.       if(this.callback)
  1237.       {
  1238.          var callback = this.callback;
  1239.          this.callback = null;
  1240.          callback.Notify(0);
  1241.       }
  1242.    }
  1243. }
  1244. function _DW_3E(close, host)
  1245. {
  1246.    var i = 0;
  1247.    while(i < this.length)
  1248.    {
  1249.       this[i].InitClose(close,host);
  1250.       var _loc0_ = null;
  1251.       i = (_loc0_ = eval("i")) + 1;
  1252.       _loc0_;
  1253.    }
  1254. }
  1255. function _DWMultiAction(func)
  1256. {
  1257.    this.Construct(arguments,0);
  1258. }
  1259. function _DW_3F(args, num)
  1260. {
  1261.    this.func = args[0];
  1262.    var i = 1;
  1263.    while(num >= i)
  1264.    {
  1265.       this["arg" + i] = args[i];
  1266.       var _loc0_ = null;
  1267.       i = (_loc0_ = eval("i")) + 1;
  1268.       _loc0_;
  1269.    }
  1270.    this.targets = new Array();
  1271.    var i = num + 1;
  1272.    while(i < args.length)
  1273.    {
  1274.       this.targets[i - num - 1] = args[i];
  1275.       i = (_loc0_ = eval("i")) + 1;
  1276.       _loc0_;
  1277.    }
  1278. }
  1279. function _DW_40(callback)
  1280. {
  1281.    this.time = getTimer();
  1282.    _DWAddAction(this);
  1283.    this.callback = callback;
  1284.    return 1;
  1285. }
  1286. function _DW_41(target)
  1287. {
  1288.    return this.func(target,this);
  1289. }
  1290. function _DW_42()
  1291. {
  1292.    this.running = this.targets.length;
  1293.    var i = 0;
  1294.    while(i < this.targets.length)
  1295.    {
  1296.       var result = this.Call(this.targets[i]);
  1297.       if(result == 0)
  1298.       {
  1299.          this.Notify(0);
  1300.       }
  1301.       var _loc0_ = null;
  1302.       i = (_loc0_ = eval("i")) + 1;
  1303.       _loc0_;
  1304.    }
  1305. }
  1306. function _DW_43(status)
  1307. {
  1308.    if(status == 0)
  1309.    {
  1310.       var _loc0_ = null;
  1311.       _loc0_ = this.running = _loc0_ = _loc0_["running"] - 1;
  1312.       if(_loc0_ == 0 && this.callback)
  1313.       {
  1314.          var callback = this.callback;
  1315.          this.callback = null;
  1316.          callback.Notify(0);
  1317.       }
  1318.    }
  1319. }
  1320. function _DW_44(close, host)
  1321. {
  1322.    this.host = !close ? host : null;
  1323.    if(this.targets[0] == null)
  1324.    {
  1325.       this.targets[0] = host;
  1326.    }
  1327. }
  1328. function _DWMultiAction1()
  1329. {
  1330.    this.Construct(arguments,1);
  1331. }
  1332. function _DW_45(target)
  1333. {
  1334.    return this.func(target,this.arg1,this);
  1335. }
  1336. function _DWMultiAction2()
  1337. {
  1338.    this.Construct(arguments,2);
  1339. }
  1340. function _DWMultiAction_Call2(target)
  1341. {
  1342.    return this.func(target,this.arg1,this.arg2,this);
  1343. }
  1344. function _DWDropTrigger(code, objects)
  1345. {
  1346.    this._DW_drop_code = code;
  1347.    this._DW_29 = objects;
  1348. }
  1349. function _DW_55(other)
  1350. {
  1351.    if(other._DW_drop_code != this._DW_drop_code)
  1352.    {
  1353.       return false;
  1354.    }
  1355.    var objects = other._DW_29;
  1356.    if(!objects)
  1357.    {
  1358.       return true;
  1359.    }
  1360.    var i = 0;
  1361.    while(i < objects.length)
  1362.    {
  1363.       if(objects[i] == this._DW_29[0])
  1364.       {
  1365.          return true;
  1366.       }
  1367.       var _loc0_ = null;
  1368.       i = (_loc0_ = eval("i")) + 1;
  1369.       _loc0_;
  1370.    }
  1371.    return false;
  1372. }
  1373. function _DWAnimateReset(obj, time, speed_type, flags, callback)
  1374. {
  1375.    var reset = new _DWAnimation(flags,time,1,0,false,speed_type,callback);
  1376.    reset.Update = _DWAnimation_ResetUpdate;
  1377.    _DW_36(obj).Add(reset);
  1378.    return 1;
  1379. }
  1380. function _DWAnimateStop(obj, flags, callback)
  1381. {
  1382.    var controller = obj._DW_4;
  1383.    if(controller)
  1384.    {
  1385.       controller.Remove(flags);
  1386.    }
  1387.    return 0;
  1388. }
  1389. function _DWAnimation(id, time, repeat, at_end, relative, speed_function, callback)
  1390. {
  1391.    this.id = id;
  1392.    if(0 >= time)
  1393.    {
  1394.       time = 10;
  1395.    }
  1396.    this.time = time;
  1397.    this.repeat = repeat;
  1398.    this.at_end = at_end;
  1399.    this.relative = relative;
  1400.    this.speed_function = speed_function;
  1401.    this.callback = callback;
  1402. }
  1403. function _DW_63(obj)
  1404. {
  1405.    this.init_x = obj._x;
  1406.    this.init_y = obj._y;
  1407.    this.init_xscale = obj._xscale;
  1408.    this.init_yscale = obj._yscale;
  1409.    this.init_rotation = obj._rotation;
  1410.    this.init_alpha = obj._alpha;
  1411.    this.start = getTimer();
  1412.    this.pause_time = false;
  1413.    this.done = false;
  1414. }
  1415. function _DW_64(obj)
  1416. {
  1417.    if(this.callback)
  1418.    {
  1419.       this.callback.Notify(0);
  1420.    }
  1421. }
  1422. function _DW_65(obj)
  1423. {
  1424.    this.pause_time = getTimer();
  1425. }
  1426. function _DW_66(obj)
  1427. {
  1428.    if(this.pause_time)
  1429.    {
  1430.       var _loc0_ = null;
  1431.       _loc0_ = this.start = _loc0_["start"] + (getTimer() - this.pause_time);
  1432.       this.pause_time = 0;
  1433.    }
  1434. }
  1435. function _DW_68(obj)
  1436. {
  1437.    obj._DW_4.Remove(this.id);
  1438. }
  1439. function _DW_67()
  1440. {
  1441.    var time = (!this.pause_time ? getTimer() : this.pause_time) - this.start;
  1442.    var trip = Math.floor(time / this.time);
  1443.    var delta = time % this.time / this.time;
  1444.    var pos = this.speed_function(delta,this.speed_type);
  1445.    if(this.at_end == 1)
  1446.    {
  1447.       if(trip >= this.repeat * 2 && this.repeat != - 1)
  1448.       {
  1449.          pos = 0;
  1450.          this.done = true;
  1451.       }
  1452.       else if(trip % 2)
  1453.       {
  1454.          pos = 1 - pos;
  1455.       }
  1456.    }
  1457.    else if(trip >= this.repeat && this.repeat != - 1)
  1458.    {
  1459.       pos = this.at_end != 0 ? 0 : (!this.relative ? 1 : this.repeat);
  1460.       this.done = true;
  1461.    }
  1462.    else if(this.at_end == 0)
  1463.    {
  1464.       if(this.relative)
  1465.       {
  1466.          pos = eval("pos") + trip;
  1467.       }
  1468.       else if(0 < trip)
  1469.       {
  1470.          pos = 1;
  1471.       }
  1472.    }
  1473.    return pos;
  1474. }
  1475. function _DWAnimation_ResetUpdate(obj)
  1476. {
  1477.    var pos = this.GetPos();
  1478.    if(this.id & 1)
  1479.    {
  1480.       obj._x = this.init_x * (1 - pos) + obj._DW_x * pos;
  1481.    }
  1482.    if(this.id & 2)
  1483.    {
  1484.       obj._y = this.init_y * (1 - pos) + obj._DW_y * pos;
  1485.    }
  1486.    if(this.id & 32)
  1487.    {
  1488.       obj._xscale = this.init_xscale * (1 - pos) + obj._DW_xscale * pos;
  1489.    }
  1490.    if(this.id & 64)
  1491.    {
  1492.       obj._yscale = this.init_yscale * (1 - pos) + obj._DW_yscale * pos;
  1493.    }
  1494.    if(this.id & 16)
  1495.    {
  1496.       obj._rotation = this.init_rotation * (1 - pos) + obj._DW_rotation * pos;
  1497.    }
  1498.    if(this.id & 2048)
  1499.    {
  1500.       obj._alpha = this.init_alpha * (1 - pos) + obj._DW_alpha * pos;
  1501.    }
  1502.    _DW_37(obj);
  1503.    if(this.done)
  1504.    {
  1505.       this.Finished(obj);
  1506.    }
  1507. }
  1508. function _DW_37(obj)
  1509. {
  1510.    var children = obj._DW_0;
  1511.    if(!children)
  1512.    {
  1513.       return undefined;
  1514.    }
  1515.    var i = 0;
  1516.    while(i < children.length)
  1517.    {
  1518.       var child = children[i];
  1519.       if(child._DW_fix_page)
  1520.       {
  1521.          child._x = child._DW_x - (obj._x - obj._DW_x);
  1522.          child._y = child._DW_y - (obj._y - obj._DW_y);
  1523.       }
  1524.       var _loc0_ = null;
  1525.       i = (_loc0_ = eval("i")) + 1;
  1526.       _loc0_;
  1527.    }
  1528. }
  1529. function _DWConstantSpeed(pos)
  1530. {
  1531.    return pos;
  1532. }
  1533. function _DWAnimationController(obj)
  1534. {
  1535.    this.list = null;
  1536.    this.object = obj;
  1537.    obj._DW_4 = this;
  1538.    _DWAddUpdate(this);
  1539. }
  1540. function _DW_69(animation)
  1541. {
  1542.    this.Remove(animation.id);
  1543.    animation.next = this.list;
  1544.    this.list = animation;
  1545.    animation.Play(this.object);
  1546. }
  1547. function _DW_6A(id)
  1548. {
  1549.    var remove_list = null;
  1550.    while(this.list && this.list.id & id)
  1551.    {
  1552.       this.list.remove_next = remove_list;
  1553.       remove_list = this.list;
  1554.       this.list = this.list.next;
  1555.    }
  1556.    var pos = this.list;
  1557.    while(pos.next)
  1558.    {
  1559.       if(pos.next.id & id)
  1560.       {
  1561.          pos.next.remove_next = remove_list;
  1562.          remove_list = pos.next;
  1563.          pos.next = pos.next.next;
  1564.       }
  1565.       else
  1566.       {
  1567.          pos = pos.next;
  1568.       }
  1569.    }
  1570.    while(remove_list)
  1571.    {
  1572.       remove_list.Stop(this.object);
  1573.       remove_list = remove_list.remove_next;
  1574.    }
  1575. }
  1576. function _DW_6B()
  1577. {
  1578.    var pos = this.list;
  1579.    while(pos)
  1580.    {
  1581.       pos.Update(this.object);
  1582.       pos = pos.next;
  1583.    }
  1584. }
  1585. function _DW_36(obj)
  1586. {
  1587.    if(obj._DW_4)
  1588.    {
  1589.       return obj._DW_4;
  1590.    }
  1591.    var controller = new _DWAnimationController(obj);
  1592.    return controller;
  1593. }
  1594. function _DW_38(parent, obj)
  1595. {
  1596.    var child_array = new Array();
  1597.    var children = parent._DW_0;
  1598.    var total = children.length;
  1599.    var i = 0;
  1600.    while(i < total)
  1601.    {
  1602.       child_array[i] = children[i];
  1603.       if(child_array[i]._DW_layer == undefined)
  1604.       {
  1605.          child_array[i]._DW_layer = 0;
  1606.       }
  1607.       var _loc0_ = null;
  1608.       i = (_loc0_ = eval("i")) + 1;
  1609.       _loc0_;
  1610.    }
  1611.    var changed = true;
  1612.    child_array.obj_index = - 1;
  1613.    while(changed)
  1614.    {
  1615.       changed = false;
  1616.       child_array.obj_index = total - 1;
  1617.       var i = 1;
  1618.       while(i < total)
  1619.       {
  1620.          if(child_array[i]._DW_depth < child_array[i - 1]._DW_depth)
  1621.          {
  1622.             var temp = child_array[i - 1];
  1623.             child_array[i - 1] = child_array[i];
  1624.             child_array[i] = temp;
  1625.             changed = true;
  1626.          }
  1627.          if(child_array[i - 1] == obj)
  1628.          {
  1629.             child_array.obj_index = i - 1;
  1630.          }
  1631.          i = (_loc0_ = eval("i")) + 1;
  1632.          _loc0_;
  1633.       }
  1634.    }
  1635.    if(child_array[child_array.obj_index] != obj)
  1636.    {
  1637.       Print("BIG STUFF UP!\n");
  1638.    }
  1639.    return child_array;
  1640. }
  1641. function _DWInitObject(obj, name, subclass, code, show_after, show_for, transparent, pass_clicks, auto_repeat, fix_page, left, top, right, bottom, depth)
  1642. {
  1643.    obj._DW_name = name;
  1644.    obj._DW_1 = 1;
  1645.    obj._DW_2 = subclass;
  1646.    obj._DW_code = code;
  1647.    obj._DW_3 = _DWGetGraphicalObjectType(subclass);
  1648.    obj._DW_object = _DWGetNewScriptObject(obj);
  1649.    obj._DW_show_after = show_after;
  1650.    obj._DW_D = show_for;
  1651.    obj._DW_transparent = transparent;
  1652.    obj._DW_pass_clicks = pass_clicks;
  1653.    obj._DW_auto_repeat = auto_repeat;
  1654.    obj._DW_fix_page = fix_page;
  1655.    obj._DW_10 = left;
  1656.    obj._DW_11 = top;
  1657.    obj._DW_12 = right;
  1658.    obj._DW_13 = bottom;
  1659.    obj._DW_depth = depth;
  1660.    obj._DW_state = "Normal";
  1661.    obj._DW_appearances = new Object();
  1662.    obj._DW_appearances[1] = 2;
  1663.    obj._DW_appearance_frame = 0;
  1664.    obj._DW_enabled = true;
  1665.    obj._DW_hit = false;
  1666.    obj._DW_auto_handle = - 1;
  1667.    obj._DW_x = obj._x;
  1668.    obj._DW_y = obj._y;
  1669.    obj._DW_xscale = obj._xscale;
  1670.    obj._DW_yscale = obj._yscale;
  1671.    obj._DW_rotation = obj._rotation;
  1672.    obj._DW_alpha = obj._alpha;
  1673.    if(obj._parent._DW_0 == undefined)
  1674.    {
  1675.       obj._parent._DW_0 = new Array();
  1676.    }
  1677.    obj._parent._DW_0.push(obj);
  1678. }
  1679. function _DWGetGraphicalObjectType(subclass)
  1680. {
  1681.    if(subclass == 1)
  1682.    {
  1683.       return "Frame";
  1684.    }
  1685.    if(subclass == 2)
  1686.    {
  1687.       return "Button";
  1688.    }
  1689.    if(subclass == 3)
  1690.    {
  1691.       return "Image";
  1692.    }
  1693.    if(subclass == 4)
  1694.    {
  1695.       return "Text";
  1696.    }
  1697.    if(subclass == 5)
  1698.    {
  1699.       return "Video";
  1700.    }
  1701.    if(subclass == 8)
  1702.    {
  1703.       return "Slideshow";
  1704.    }
  1705.    if(subclass == 10)
  1706.    {
  1707.       return "Vector";
  1708.    }
  1709.    if(subclass == 11)
  1710.    {
  1711.       return "Path";
  1712.    }
  1713.    if(subclass == 16)
  1714.    {
  1715.       return "Scrollbar";
  1716.    }
  1717.    if(subclass == 17)
  1718.    {
  1719.       return "Browser";
  1720.    }
  1721.    if(subclass == 18)
  1722.    {
  1723.       return "Frameset";
  1724.    }
  1725.    if(subclass == 30)
  1726.    {
  1727.       return "Frameset";
  1728.    }
  1729.    return "Unknown";
  1730. }
  1731. function _DWInitAppearances(obj)
  1732. {
  1733.    var apps = obj._DW_appearances;
  1734.    var i = 1;
  1735.    while(i < arguments.length)
  1736.    {
  1737.       apps[arguments[i]] = arguments[i + 1];
  1738.       i = eval("i") + 2;
  1739.    }
  1740. }
  1741. function _DWStartObject(obj)
  1742. {
  1743.    if(obj._DW_visible == undefined)
  1744.    {
  1745.       _DWInitActions(obj);
  1746.    }
  1747.    obj._DW_visible = 0;
  1748.    if(obj._parent._DW_3 == "Frameset")
  1749.    {
  1750.       obj._visible = false;
  1751.    }
  1752.    else if(obj._DW_show_after)
  1753.    {
  1754.       obj._visible = false;
  1755.       if(obj._DW_show_after != - 1)
  1756.       {
  1757.          var show_action = new Object();
  1758.          show_action.CallAction = _DWActionShow;
  1759.          show_action.object = obj;
  1760.          show_action.time = getTimer() + obj._DW_show_after;
  1761.          _DWAddAction(show_action);
  1762.       }
  1763.    }
  1764.    else
  1765.    {
  1766.       _DWShowObject(obj);
  1767.    }
  1768. }
  1769. function _DWSetAppearance(obj, appearance)
  1770. {
  1771.    var index = obj._DW_appearances[appearance];
  1772.    if(index == undefined)
  1773.    {
  1774.       index = 1;
  1775.    }
  1776.    if(obj._DW_appearance_frame != index)
  1777.    {
  1778.       obj.gotoAndStop(obj._DW_appearance_frame + 1);
  1779.       obj.gotoAndStop(index);
  1780.       obj._DW_appearance_frame = index;
  1781.    }
  1782.    if(obj._DW_transparency)
  1783.    {
  1784.       var transparency = obj._DW_transparency[appearance];
  1785.       if(transparency != undefined)
  1786.       {
  1787.          obj._alpha = transparency;
  1788.       }
  1789.    }
  1790.    if(obj._DW_stretch)
  1791.    {
  1792.       var stretch_x = obj._DW_stretch[2 * appearance];
  1793.       var stretch_y = obj._DW_stretch[2 * appearance + 1];
  1794.       if(stretch_x != undefined && stretch_y != undefined)
  1795.       {
  1796.          obj._xscale = stretch_x;
  1797.          obj._yscale = stretch_y;
  1798.       }
  1799.    }
  1800.    if(obj._DW_sub_objects)
  1801.    {
  1802.       var hide_unknown = obj._DW_sub_objects[2 * appearance];
  1803.       var objects = obj._DW_sub_objects[2 * appearance + 1];
  1804.       var children = obj._DW_0;
  1805.       if(children)
  1806.       {
  1807.          var i = 0;
  1808.          while(i < children.length)
  1809.          {
  1810.             var child = children[i];
  1811.             var hide = hide_unknown;
  1812.             var j = 0;
  1813.             while(j < objects.length)
  1814.             {
  1815.                if(objects[j] == child)
  1816.                {
  1817.                   hide = !objects[j + 1];
  1818.                   break;
  1819.                }
  1820.                j = eval("j") + 2;
  1821.             }
  1822.             if(hide)
  1823.             {
  1824.                _DWHideObject(child);
  1825.             }
  1826.             else
  1827.             {
  1828.                _DWShowObject(child);
  1829.             }
  1830.             var _loc0_ = null;
  1831.             i = (_loc0_ = eval("i")) + 1;
  1832.             _loc0_;
  1833.          }
  1834.       }
  1835.    }
  1836. }
  1837. function _DWShowObject(obj, transition, callback, bodge)
  1838. {
  1839.    if(obj._parent._DW_3 == "Frameset" && callback && !bodge)
  1840.    {
  1841.       return _DWFrameSetShowFrame(obj,transition,callback);
  1842.    }
  1843.    if(typeof transition == "string")
  1844.    {
  1845.       transition = obj._parent[obj._name + transition];
  1846.    }
  1847.    else if(typeof transition != "object")
  1848.    {
  1849.       transition = obj._DW_show;
  1850.       if(!transition)
  1851.       {
  1852.          transition = obj._DW_textshow;
  1853.       }
  1854.    }
  1855.    if(obj._DW_visible == 2 || obj._DW_visible == 1)
  1856.    {
  1857.       return 0;
  1858.    }
  1859.    if(obj._DW_visible == 3)
  1860.    {
  1861.       var transition = obj._DW_transition;
  1862.       transition.stop();
  1863.       transition._visible = false;
  1864.       if(transition._DW_transition_callback)
  1865.       {
  1866.          transition._DW_transition_callback.Notify(0);
  1867.       }
  1868.       obj._visible = true;
  1869.       obj._DW_visible = 2;
  1870.       return 0;
  1871.    }
  1872.    _DWTriggerEvents(obj,"PreShow");
  1873.    obj._x = obj._DW_x;
  1874.    obj._y = obj._DW_y;
  1875.    obj._xscale = obj._DW_xscale;
  1876.    obj._yscale = obj._DW_yscale;
  1877.    obj._rotation = obj._DW_rotation;
  1878.    obj._alpha = obj._DW_alpha;
  1879.    if(obj._DW_fix_page)
  1880.    {
  1881.       obj._x = obj._DW_x - (obj._parent._x - obj._parent._DW_x);
  1882.       obj._y = obj._DW_y - (obj._parent._y - obj._parent._DW_y);
  1883.    }
  1884.    _DWSetAppearance(obj,!(obj._DW_3 == "Button" && obj._DW_button_down) ? 1 : 5);
  1885.    if(transition)
  1886.    {
  1887.       obj._DW_transition = transition;
  1888.       obj._visible = false;
  1889.       obj._DW_visible = 1;
  1890.       _DWSyncTransition(true,obj,transition);
  1891.       transition._visible = true;
  1892.       transition.gotoAndPlay(1);
  1893.       transition._DW_transition_callback = callback;
  1894.       return 1;
  1895.    }
  1896.    obj._visible = true;
  1897.    obj._DW_visible = 2;
  1898.    _DWShowObjectComplete(obj);
  1899.    return 0;
  1900. }
  1901. function _DWShowObjectComplete(obj)
  1902. {
  1903.    Print("_DWShowObjectComplete \n");
  1904.    var children = obj._DW_0;
  1905.    if(children)
  1906.    {
  1907.       var i = 0;
  1908.       while(i < children.length)
  1909.       {
  1910.          _DWStartObject(children[i]);
  1911.          var _loc0_ = null;
  1912.          i = (_loc0_ = eval("i")) + 1;
  1913.          _loc0_;
  1914.       }
  1915.    }
  1916.    var script_children = obj._DW_script_children;
  1917.    if(script_children)
  1918.    {
  1919.       var i = 0;
  1920.       while(i < script_children.length)
  1921.       {
  1922.          script_children[i].StartObject();
  1923.          i = (_loc0_ = eval("i")) + 1;
  1924.          _loc0_;
  1925.       }
  1926.    }
  1927.    if(obj._DW_D != - 1)
  1928.    {
  1929.       var hide_action = new Object();
  1930.       hide_action.CallAction = _DWActionHide;
  1931.       hide_action.object = obj;
  1932.       hide_action.time = getTimer() + obj._DW_D;
  1933.       _DWAddAction(hide_action);
  1934.    }
  1935.    if(obj._DW_3 == "Text")
  1936.    {
  1937.       if(obj._DW_set_focus)
  1938.       {
  1939.          Selection.setFocus(obj + "._DWTEXT");
  1940.       }
  1941.    }
  1942.    _DWTriggerEvents(obj,"OnShow");
  1943.    if(i)
  1944.    {
  1945.       _DWUpdateVariableCallbacks();
  1946.    }
  1947. }
  1948. function _DWHideObject(obj, transition, callback, bodge)
  1949. {
  1950.    if(obj._parent._DW_3 == "Frameset" && callback && !bodge)
  1951.    {
  1952.       return 0;
  1953.    }
  1954.    if(transition != undefined)
  1955.    {
  1956.       if(obj._DW_texthide)
  1957.       {
  1958.          var transition_in = transition;
  1959.          transition = obj._DW_texthide;
  1960.          transition._DW_ObjectHideTransition = obj._parent[obj._name + transition_in];
  1961.       }
  1962.       else
  1963.       {
  1964.          transition = obj._parent[obj._name + transition];
  1965.       }
  1966.    }
  1967.    else
  1968.    {
  1969.       transition = obj._DW_texthide;
  1970.       if(!transition)
  1971.       {
  1972.          transition = obj._DW_hide;
  1973.       }
  1974.       else
  1975.       {
  1976.          transition._DW_ObjectHideTransition = null;
  1977.       }
  1978.    }
  1979.    if(obj._DW_27)
  1980.    {
  1981.       _DWUndropObject(obj);
  1982.    }
  1983.    if(obj._DW_visible == 0 || obj._DW_visible == 3)
  1984.    {
  1985.       return 0;
  1986.    }
  1987.    if(obj._DW_visible == 1)
  1988.    {
  1989.       var transition = obj._DW_transition;
  1990.       transition.stop();
  1991.       transition._visible = false;
  1992.       if(transition._DW_transition_callback)
  1993.       {
  1994.          transition._DW_transition_callback.Notify(0);
  1995.       }
  1996.       obj._visible = false;
  1997.       obj._DW_visible = 0;
  1998.       return 0;
  1999.    }
  2000.    _DWTriggerEvents(obj,"PreHide");
  2001.    _DWAnimateStop(obj,4294967295);
  2002.    if(transition)
  2003.    {
  2004.       obj._DW_transition = transition;
  2005.       transition._x = obj._x;
  2006.       transition._y = obj._y;
  2007.       transition._xscale = obj._xscale;
  2008.       transition._yscale = obj._yscale;
  2009.       transition._rotation = obj._rotation;
  2010.       transition._alpha = obj._alpha;
  2011.       obj._visible = false;
  2012.       obj._DW_visible = 3;
  2013.       _DWSyncTransition(false,obj,transition);
  2014.       transition._visible = true;
  2015.       transition.gotoAndPlay(1);
  2016.       transition._DW_transition_callback = callback;
  2017.       return 1;
  2018.    }
  2019.    obj._visible = false;
  2020.    obj._DW_visible = 0;
  2021.    _DWHideObjectComplete(obj);
  2022.    return 0;
  2023. }
  2024. function _DWHideObjectComplete(obj)
  2025. {
  2026.    _DWTriggerEvents(obj,"OnHide");
  2027. }
  2028. function _DWStopObject(obj)
  2029. {
  2030.    var controller = obj._DW_4;
  2031.    if(controller)
  2032.    {
  2033.       _DWRemoveUpdate(controller);
  2034.       obj._DW_4 = null;
  2035.    }
  2036.    _DWCloseActions(obj);
  2037.    var children = obj._DW_0;
  2038.    if(children)
  2039.    {
  2040.       var i = 0;
  2041.       while(i < children.length)
  2042.       {
  2043.          _DWStopObject(children[i]);
  2044.          var _loc0_ = null;
  2045.          i = (_loc0_ = eval("i")) + 1;
  2046.          _loc0_;
  2047.       }
  2048.    }
  2049.    var script_children = obj._DW_script_children;
  2050.    if(script_children)
  2051.    {
  2052.       var i = 0;
  2053.       while(i < script_children.length)
  2054.       {
  2055.          script_children[i].StopObject();
  2056.          i = (_loc0_ = eval("i")) + 1;
  2057.          _loc0_;
  2058.       }
  2059.    }
  2060. }
  2061. function _DWSyncTransition(show, obj, transition)
  2062. {
  2063.    if(typeof transition == "object")
  2064.    {
  2065.       var children = obj._DW_0;
  2066.       if(children && show)
  2067.       {
  2068.          var i = 0;
  2069.          while(i < children.length)
  2070.          {
  2071.             var child = children[i];
  2072.             child._visible = !(child._DW_show || child._DW_show_after);
  2073.             _DWSyncTransition(show,child,transition);
  2074.             var _loc0_ = null;
  2075.             i = (_loc0_ = eval("i")) + 1;
  2076.             _loc0_;
  2077.          }
  2078.       }
  2079.       return undefined;
  2080.    }
  2081.    var j = 0;
  2082.    var trans_obj;
  2083.    while(true)
  2084.    {
  2085.       j = (_loc0_ = eval("j")) + 1;
  2086.       var trans_obj = transition["_DWNull" + _loc0_];
  2087.       if(!trans_obj)
  2088.       {
  2089.          break;
  2090.       }
  2091.       _DWSyncTransitionChildren(show,obj,trans_obj);
  2092.    }
  2093. }
  2094. function _DWSyncTransitionChildren(show, obj, transition)
  2095. {
  2096.    var children = obj._DW_0;
  2097.    if(children)
  2098.    {
  2099.       var i = 0;
  2100.       while(i < children.length)
  2101.       {
  2102.          var child = children[i];
  2103.          var trans_child = transition[child._name];
  2104.          if(child._DW_show)
  2105.          {
  2106.             transition[child._DW_show._name]._visible = false;
  2107.          }
  2108.          if(child._DW_hide)
  2109.          {
  2110.             transition[child._DW_hide._name]._visible = false;
  2111.          }
  2112.          if(show)
  2113.          {
  2114.             trans_child._visible = !(child._DW_show || child._DW_show_after);
  2115.          }
  2116.          else
  2117.          {
  2118.             trans_child._visible = child._visible;
  2119.             trans_child._x = child._x;
  2120.             trans_child._y = child._y;
  2121.             trans_child._xscale = child._xscale;
  2122.             trans_child._yscale = child._yscale;
  2123.             trans_child._rotation = child._rotation;
  2124.             trans_child._alpha = child._alpha;
  2125.          }
  2126.          _DWSyncTransitionChildren(show,child,trans_child);
  2127.          var _loc0_ = null;
  2128.          i = (_loc0_ = eval("i")) + 1;
  2129.          _loc0_;
  2130.       }
  2131.    }
  2132. }
  2133. function _DWInitDrag(obj, return_time)
  2134. {
  2135.    obj._DW_26 = return_time;
  2136.    obj._DW_27 = null;
  2137. }
  2138. function _DWBeginDrag(obj)
  2139. {
  2140.    if(_DW_drag_object)
  2141.    {
  2142.       return false;
  2143.    }
  2144.    if(obj._DW_27)
  2145.    {
  2146.       if(!obj._DW_27._DW_22)
  2147.       {
  2148.          return false;
  2149.       }
  2150.       _DWTriggerEvents(obj._DW_27,new _DWDropTrigger(8389122,[obj]));
  2151.       _DWUndropObject(obj);
  2152.    }
  2153.    _DW_drag_object = obj;
  2154.    var sib_array = _DW_38(obj._parent,obj);
  2155.    var i = sib_array.obj_index + 1;
  2156.    while(i < sib_array.length)
  2157.    {
  2158.       obj.swapDepths(sib_array[i]);
  2159.       var _loc0_ = null;
  2160.       i = (_loc0_ = eval("i")) + 1;
  2161.       _loc0_;
  2162.    }
  2163.    var _left;
  2164.    var _right;
  2165.    var _top;
  2166.    var _bottom;
  2167.    with(obj._parent)
  2168.    {
  2169.       if(_DW_3 == "Scrollbar")
  2170.       {
  2171.          if(_DW_scroll_vertical)
  2172.          {
  2173.             _left = 0;
  2174.             _right = 0;
  2175.             _top = _DW_11 - obj._DW_11 * obj._yscale / 100;
  2176.             if(_DW_scroll_up_button)
  2177.             {
  2178.                _top = eval("_top") + (_DW_scroll_up_button._DW_13 - _DW_scroll_up_button._DW_11);
  2179.             }
  2180.             _bottom = _DW_13 - obj._DW_13 * obj._yscale / 100;
  2181.             if(_DW_scroll_down_button)
  2182.             {
  2183.                _bottom = eval("_bottom") - (_DW_scroll_down_button._DW_13 - _DW_scroll_down_button._DW_11);
  2184.             }
  2185.          }
  2186.          else
  2187.          {
  2188.             _top = 0;
  2189.             _bottom = 0;
  2190.             _left = _DW_10 - obj._DW_10 * obj._xscale / 100;
  2191.             if(_DW_scroll_up_button)
  2192.             {
  2193.                _left = eval("_left") + (_DW_scroll_up_button._DW_12 - _DW_scroll_up_button._DW_10);
  2194.             }
  2195.             _right = _DW_12 - obj._DW_12 * obj._xscale / 100;
  2196.             if(_DW_scroll_down_button)
  2197.             {
  2198.                _right = eval("_right") - (_DW_scroll_down_button._DW_12 - _DW_scroll_down_button._DW_10);
  2199.             }
  2200.          }
  2201.       }
  2202.    }
  2203.    obj.startDrag(false,_left,_top,_right,_bottom);
  2204.    return true;
  2205. }
  2206. function _DWEndDrag()
  2207. {
  2208.    _DW_drag_object.stopDrag();
  2209.    var sib_array = _DW_38(_DW_drag_object._parent,_DW_drag_object);
  2210.    var i = sib_array.length - 1;
  2211.    while(sib_array.obj_index < i)
  2212.    {
  2213.       _DW_drag_object.swapDepths(sib_array[i]);
  2214.       var _loc0_ = null;
  2215.       i = (_loc0_ = eval("i")) - 1;
  2216.       _loc0_;
  2217.    }
  2218.    var target = _DWFindDropTarget(_DW_9,_DW_drag_object);
  2219.    if(target)
  2220.    {
  2221.       target._DW_28.push(_DW_drag_object);
  2222.       _DW_drag_object._DW_27 = target;
  2223.       if(target._DW_24)
  2224.       {
  2225.          var point = new Object();
  2226.          point.x = 0;
  2227.          point.y = 0;
  2228.          target.localToGlobal(point);
  2229.          _DW_drag_object._parent.globalToLocal(point);
  2230.          _DW_drag_object._x = point.x;
  2231.          _DW_drag_object._y = point.y;
  2232.       }
  2233.       _DWTriggerEvents(_DW_drag_object,new _DWDropTrigger(8389124,null));
  2234.       _DWTriggerEvents(target,new _DWDropTrigger(8389121,[_DW_drag_object]));
  2235.       if(target._DW_25 != - 1 && target._DW_28.length == target._DW_25)
  2236.       {
  2237.          _DWTriggerEvents(target,new _DWDropTrigger(8389123,[_DW_drag_object]));
  2238.       }
  2239.    }
  2240.    else if(0 < _DW_drag_object._DW_26)
  2241.    {
  2242.       _DWAnimateReset(_DW_drag_object,_DW_drag_object._DW_26,_DWConstantSpeed,3);
  2243.    }
  2244.    _DW_drag_object = null;
  2245. }
  2246. function _DWUpdateDrag()
  2247. {
  2248.    if(_DW_drag_object._parent._DW_3 == "Scrollbar")
  2249.    {
  2250.       _DWUpdateDragScroll(_DW_drag_object._parent);
  2251.    }
  2252.    _DW_37(_DW_drag_object);
  2253. }
  2254. function _DWUndropObject(obj)
  2255. {
  2256.    var list = obj._DW_27._DW_28;
  2257.    var i = 0;
  2258.    while(i < list.length)
  2259.    {
  2260.       if(list[i] == obj)
  2261.       {
  2262.          list.splice(i,1);
  2263.       }
  2264.       var _loc0_ = null;
  2265.       i = (_loc0_ = eval("i")) + 1;
  2266.       _loc0_;
  2267.    }
  2268.    obj._DW_27 = null;
  2269. }
  2270. function _DWFindDropTarget(target, obj)
  2271. {
  2272.    var children = target._DW_0;
  2273.    if(!children)
  2274.    {
  2275.       return null;
  2276.    }
  2277.    var i = 0;
  2278.    while(i < children.length)
  2279.    {
  2280.       var child = children[i];
  2281.       if(_DWTestDrop(child,obj))
  2282.       {
  2283.          return child;
  2284.       }
  2285.       child = _DWFindDropTarget(child,obj);
  2286.       if(child)
  2287.       {
  2288.          return child;
  2289.       }
  2290.       var _loc0_ = null;
  2291.       i = (_loc0_ = eval("i")) + 1;
  2292.       _loc0_;
  2293.    }
  2294.    return null;
  2295. }
  2296. function _DWTestDrop(target, obj)
  2297. {
  2298.    if(target._DW_24 == undefined)
  2299.    {
  2300.       return false;
  2301.    }
  2302.    var obj_pos = new Object();
  2303.    obj_pos.x = 0;
  2304.    obj_pos.y = 0;
  2305.    obj.localToGlobal(obj_pos);
  2306.    var target_pos = new Object();
  2307.    target_pos.x = 0;
  2308.    target_pos.y = 0;
  2309.    target.localToGlobal(target_pos);
  2310.    var width = target._width;
  2311.    var height = target._height;
  2312.    if(target._DW_23)
  2313.    {
  2314.       width = eval("width") - obj._width;
  2315.       height = eval("height") - obj._height;
  2316.    }
  2317.    if(width / 2 < Math.abs(obj_pos.x - target_pos.x) || height / 2 < Math.abs(obj_pos.y - target_pos.y))
  2318.    {
  2319.       return false;
  2320.    }
  2321.    if(target._DW_25 != - 1 && target._DW_28.length == target._DW_25)
  2322.    {
  2323.       _DWTriggerEvents(target,new _DWDropTrigger(8389125,null));
  2324.       return false;
  2325.    }
  2326.    var objects = target._DW_29;
  2327.    if(objects)
  2328.    {
  2329.       var OK = false;
  2330.       var i = 0;
  2331.       while(i < objects.length)
  2332.       {
  2333.          if(objects[i] == obj)
  2334.          {
  2335.             OK = true;
  2336.          }
  2337.          var _loc0_ = null;
  2338.          i = (_loc0_ = eval("i")) + 1;
  2339.          _loc0_;
  2340.       }
  2341.       if(!OK)
  2342.       {
  2343.          _DWTriggerEvents(target,new _DWDropTrigger(8389125,null));
  2344.          return false;
  2345.       }
  2346.    }
  2347.    return true;
  2348. }
  2349. function _DWFrameSetShowFrame(frame, transition, callback)
  2350. {
  2351.    var frameset = frame._parent;
  2352.    if(frameset._DW_current_frame == frame)
  2353.    {
  2354.       return 0;
  2355.    }
  2356.    _DWHideObject(frameset._DW_current_frame);
  2357.    frameset._DW_current_frame = frame;
  2358.    return _DWShowObject(frame,transition,callback,true);
  2359. }
  2360. function _DWUpdateDragScroll(scrollbar)
  2361. {
  2362.    var info = new Object();
  2363.    _DWGetSetThumbPosition(scrollbar,true,info);
  2364.    if(info.pos < 0)
  2365.    {
  2366.       info.pos = 0;
  2367.    }
  2368.    if(1 < info.pos)
  2369.    {
  2370.       info.pos = 1;
  2371.    }
  2372.    _DWGetSetScrollPosition(scrollbar,false,info);
  2373. }
  2374. function _DWGetSetThumbPosition(scrollbar, ┬ºget┬º, info)
  2375. {
  2376.    var thumb = scrollbar._DW_scroll_thumb;
  2377.    if(scrollbar._DW_scroll_vertical)
  2378.    {
  2379.       var top = scrollbar._DW_11;
  2380.       var height = scrollbar._DW_13 - scrollbar._DW_11;
  2381.       var button = scrollbar._DW_scroll_up_button;
  2382.       if(button)
  2383.       {
  2384.          var top_height = button._DW_13 - button._DW_11;
  2385.          top = eval("top") + top_height;
  2386.          height = eval("height") - top_height;
  2387.       }
  2388.       button = scrollbar._DW_scroll_down_button;
  2389.       if(button)
  2390.       {
  2391.          height = eval("height") - (button._DW_13 - button._DW_11);
  2392.       }
  2393.       if(eval("get"))
  2394.       {
  2395.          var thumb_height = (thumb._DW_13 - thumb._DW_11) * thumb._yscale / 100;
  2396.          info.pos = (thumb._y - thumb_height / 2 - top) / (height - thumb_height);
  2397.       }
  2398.       else
  2399.       {
  2400.          var thumb_height;
  2401.          if(scrollbar._DW_scroll_proportional)
  2402.          {
  2403.             thumb_height = info.size * height;
  2404.          }
  2405.          else
  2406.          {
  2407.             thumb_height = thumb._DW_13 - thumb._DW_11;
  2408.          }
  2409.          var thumb_pos = top + info.pos * (height - thumb_height) + thumb_height / 2;
  2410.          thumb._y = thumb_pos;
  2411.          thumb._yscale = thumb_height * 100 / (thumb._DW_13 - thumb._DW_11);
  2412.       }
  2413.    }
  2414.    else
  2415.    {
  2416.       var left = scrollbar._DW_10;
  2417.       var width = scrollbar._DW_12 - scrollbar._DW_10;
  2418.       var button = scrollbar._DW_scroll_up_button;
  2419.       if(button)
  2420.       {
  2421.          var left_width = button._DW_12 - button._DW_10;
  2422.          left = eval("left") + left_width;
  2423.          width = eval("width") - left_width;
  2424.       }
  2425.       var button = scrollbar._DW_scroll_up_button;
  2426.       if(button)
  2427.       {
  2428.          width = eval("width") - (button._DW_12 - button._DW_10);
  2429.       }
  2430.       if(eval("get"))
  2431.       {
  2432.          var thumb_width = (thumb._DW_12 - thumb._DW_10) * thumb._xscale / 100;
  2433.          info.pos = (thumb._x - thumb_width / 2 - left) / (width - thumb_width);
  2434.       }
  2435.       else
  2436.       {
  2437.          var thumb_width;
  2438.          if(scrollbar._DW_scroll_proportional)
  2439.          {
  2440.             thumb_width = info.size * width;
  2441.          }
  2442.          else
  2443.          {
  2444.             thumb_width = thumb._DW_12 - thumb._DW_10;
  2445.          }
  2446.          var thumb_pos = left + info.pos * (width - thumb_width) + thumb_width / 2;
  2447.          thumb._x = thumb_pos;
  2448.          thumb._xscale = thumb_width * 100 / (thumb._DW_12 - thumb._DW_10);
  2449.       }
  2450.    }
  2451. }
  2452. function _DWGetSetScrollPosition(scrollbar, ┬ºget┬º, info)
  2453. {
  2454.    var parent = scrollbar._parent;
  2455.    var contents;
  2456.    if(parent._DW_3 == "Text")
  2457.    {
  2458.       if(scrollbar._DW_scroll_vertical)
  2459.       {
  2460.          if(!parent._DWTEXTS)
  2461.          {
  2462.             if(eval("get"))
  2463.             {
  2464.                info.pos = (parent._DWTEXT.scroll - 1) / (parent._DWTEXT.maxscroll - 1);
  2465.             }
  2466.             else
  2467.             {
  2468.                parent._DWTEXT.scroll = Math.floor(info.pos * (parent._DWTEXT.maxscroll - 1) + 0.5) + 1;
  2469.             }
  2470.             scrollbar._DW_scroll_proportional = false;
  2471.             return undefined;
  2472.          }
  2473.          contents = parent._DWTEXTS;
  2474.       }
  2475.    }
  2476.    if(parent._DW_3 == "Image")
  2477.    {
  2478.       var contents = parent._DWIMAGE;
  2479.    }
  2480.    if(!contents)
  2481.    {
  2482.       info.pos = 0;
  2483.       info.size = 1;
  2484.    }
  2485.    if(scrollbar._DW_scroll_vertical)
  2486.    {
  2487.       var parent_height = parent._DW_13 - parent._DW_11;
  2488.       if(eval("get"))
  2489.       {
  2490.          info.pos = (- contents._y) / (contents._height - parent_height);
  2491.          info.size = parent_height / contents._height;
  2492.       }
  2493.       else
  2494.       {
  2495.          contents._y = - info.pos * (contents._height - parent_height);
  2496.       }
  2497.    }
  2498.    else
  2499.    {
  2500.       var parent_width = parent._DW_12 - parent._DW_10;
  2501.       if(eval("get"))
  2502.       {
  2503.          info.pos = (- contents._x) / (contents._width - parent_width);
  2504.          info.size = parent_width / contents._width;
  2505.       }
  2506.       else
  2507.       {
  2508.          contents._x = - info.pos * (contents._width - parent_width);
  2509.       }
  2510.    }
  2511. }
  2512. function _DWHyperTextClicked(id)
  2513. {
  2514.    var pos = id.indexOf(":",0);
  2515.    var tag = id.substr(pos + 1);
  2516.    id = "_root" + id.substr(8,pos - 8);
  2517.    var textobj = eval(id);
  2518.    var actions = textobj["_DWLink" + tag + "_DWActions"];
  2519.    var i = 0;
  2520.    while(i < actions.length)
  2521.    {
  2522.       actions[i].Trigger("OnLeftClick");
  2523.       var _loc0_ = null;
  2524.       i = (_loc0_ = eval("i")) + 1;
  2525.       _loc0_;
  2526.    }
  2527. }
  2528. function _DWCheckInputFocus()
  2529. {
  2530.    var new_focus = Selection.getFocus();
  2531.    if(new_focus != null)
  2532.    {
  2533.       var idx = new_focus.lastIndexOf(".");
  2534.       new_focus = new_focus.substr(0,idx);
  2535.    }
  2536.    if(new_focus != _DW_32)
  2537.    {
  2538.       var obj = eval(_DW_32);
  2539.       if(!obj._DW_update_every_char && obj._DW_3 == "Text")
  2540.       {
  2541.          if(obj._DWTEXT != _DWGetVariable(obj._DW_text_variable,obj))
  2542.          {
  2543.             _DWSetVariable(obj._DW_text_variable,obj._DWTEXT,obj);
  2544.          }
  2545.       }
  2546.       if(obj._DW_kill_focus_enter)
  2547.       {
  2548.          _DWTriggerEvents(obj,"Keyd");
  2549.       }
  2550.       _DW_32 = new_focus;
  2551.    }
  2552. }
  2553. function _DWFormatHex(number, digits)
  2554. {
  2555.    var string = number.toString(16) + "";
  2556.    while(string.length < digits)
  2557.    {
  2558.       string = "0" + string;
  2559.    }
  2560.    return string;
  2561. }
  2562. function _DWSendTrigger(obj, trigger)
  2563. {
  2564.    if(obj == null)
  2565.    {
  2566.       return undefined;
  2567.    }
  2568.    _DWTriggerEvents(obj,trigger);
  2569.    var children = obj._DW_0;
  2570.    if(!children)
  2571.    {
  2572.       return undefined;
  2573.    }
  2574.    var i = children.length - 1;
  2575.    while(i >= 0)
  2576.    {
  2577.       var child = children[i];
  2578.       _DWSendTrigger(child,trigger);
  2579.       var _loc0_ = null;
  2580.       i = (_loc0_ = eval("i")) - 1;
  2581.       _loc0_;
  2582.    }
  2583. }
  2584. function _DWGetNewScriptObject(obj)
  2585. {
  2586.    var type = obj._DW_3;
  2587.    if(type == "Button")
  2588.    {
  2589.       return new _ILMButton(obj);
  2590.    }
  2591.    if(type == "Page")
  2592.    {
  2593.       return new _ILMPage(obj);
  2594.    }
  2595.    if(type == "Slideshow")
  2596.    {
  2597.       return new _ILMSlideshow(obj);
  2598.    }
  2599.    if(type == "Text")
  2600.    {
  2601.       return new _ILMText(obj);
  2602.    }
  2603.    if(type == "Video")
  2604.    {
  2605.       return new _ILMVideo(obj);
  2606.    }
  2607.    if(type == "Frameset")
  2608.    {
  2609.       return new _ILMFrameSet(obj);
  2610.    }
  2611.    if(type == "Publication")
  2612.    {
  2613.       return new _ILMGlobal(obj);
  2614.    }
  2615.    return new _ILMGraphicalObject(obj);
  2616. }
  2617. function _ILMEventObject(sprite)
  2618. {
  2619.    this.__DW_sprite = sprite;
  2620. }
  2621. function _ILMTreeObject(sprite)
  2622. {
  2623.    this._ILMEventObject(sprite);
  2624. }
  2625. function _ILMGraphicalObject(sprite)
  2626. {
  2627.    this._ILMTreeObject(sprite);
  2628. }
  2629. function _ILMButton(sprite)
  2630. {
  2631.    this._ILMGraphicalObject(sprite);
  2632. }
  2633. function _ILMFrameSet(sprite)
  2634. {
  2635.    this._ILMGraphicalObject(sprite);
  2636. }
  2637. function _ILMSlideshow(sprite)
  2638. {
  2639.    this._ILMGraphicalObject(sprite);
  2640. }
  2641. function _ILMText(sprite)
  2642. {
  2643.    this._ILMGraphicalObject(sprite);
  2644. }
  2645. function _ILMVideo(sprite)
  2646. {
  2647.    this._ILMGraphicalObject(sprite);
  2648. }
  2649. function _ILMGlobal(sprite)
  2650. {
  2651.    this._ILMTreeObject(sprite);
  2652.    this.Debug = new _ILMDebug();
  2653. }
  2654. function _ILMPage(sprite)
  2655. {
  2656.    this._ILMGlobal(sprite);
  2657. }
  2658. function _ILMDebug()
  2659. {
  2660. }
  2661. _DWPubReseter.prototype.Update = _DWPubReseter_Update;
  2662. _DWEvent.prototype.Trigger = _DW_39;
  2663. _DWEvent.prototype.InitClose = _DW_3A;
  2664. _DWActionList.prototype.Go = _DW_3B;
  2665. _DWActionList.prototype.Run = _DW_3C;
  2666. _DWActionList.prototype.Notify = _DW_3D;
  2667. _DWActionList.prototype.InitClose = _DW_3E;
  2668. _DWMultiAction.prototype.Construct = _DW_3F;
  2669. _DWMultiAction.prototype.Go = _DW_40;
  2670. _DWMultiAction.prototype.Call = _DW_41;
  2671. _DWMultiAction.prototype.CallAction = _DW_42;
  2672. _DWMultiAction.prototype.Notify = _DW_43;
  2673. _DWMultiAction.prototype.InitClose = _DW_44;
  2674. _DWMultiAction1.prototype = new _DWMultiAction();
  2675. _DWMultiAction1.prototype.Call = _DW_45;
  2676. _DWMultiAction2.prototype = new _DWMultiAction();
  2677. _DWMultiAction2.prototype.Call = _DWMultiAction_Call2;
  2678. _DWMultiAction3.prototype = new _DWMultiAction();
  2679. _DWMultiAction3.prototype.Call = _DWMultiAction_Call3;
  2680. _DWMultiAction4.prototype = new _DWMultiAction();
  2681. _DWMultiAction4.prototype.Call = _DWMultiAction_Call4;
  2682. _DWMultiAction5.prototype = new _DWMultiAction();
  2683. _DWMultiAction5.prototype.Call = _DWMultiAction_Call5;
  2684. _DWMultiAction6.prototype = new _DWMultiAction();
  2685. _DWMultiAction6.prototype.Call = _DWMultiAction_Call6;
  2686. _DWMultiAction7.prototype = new _DWMultiAction();
  2687. _DWMultiAction7.prototype.Call = _DWMultiAction_Call7;
  2688. _DWMultiAction8.prototype = new _DWMultiAction();
  2689. _DWMultiAction8.prototype.Call = _DWMultiAction_Call8;
  2690. _DWMultiAction9.prototype = new _DWMultiAction();
  2691. _DWMultiAction9.prototype.Call = _DWMultiAction_Call9;
  2692. _DWMultiAction10.prototype = new _DWMultiAction();
  2693. _DWMultiAction10.prototype.Call = _DWMultiAction_Call10;
  2694. _DWActionDelay.prototype.Go = _DW_46;
  2695. _DWActionDelay.prototype.Update = _DW_47;
  2696. _DWActionDelay.prototype.InitClose = _DW_48;
  2697. _DWActionGroup.prototype.Go = _DW_49;
  2698. _DWActionGroup.prototype.Notify = _DW_4A;
  2699. _DWActionGroup.prototype.InitClose = _DW_4B;
  2700. _DWActionLoop.prototype.Go = _DW_4C;
  2701. _DWActionLoop.prototype.Notify = _DW_4D;
  2702. _DWActionLoop.prototype.Update = _DW_4E;
  2703. _DWActionLoop.prototype.DoNext = _DW_4F;
  2704. _DWActionLoop.prototype.InitClose = _DW_50;
  2705. _DWActionCondition.prototype.Go = _DW_51;
  2706. _DWActionCondition.prototype.InitClose = _DW_52;
  2707. _DWTickerTrigger.prototype.InitClose = _DW_53;
  2708. _DWTickerTrigger.prototype.Update = _DW_54;
  2709. _DWDropTrigger.prototype.Match = _DW_55;
  2710. _DWCollisionTrigger.prototype.InitClose = _DW_56;
  2711. _DWCollisionTrigger.prototype.Update = _DW_57;
  2712. _DWVariableTrigger.prototype.InitClose = _DWVariableTrigger_InitClose;
  2713. _DWVariableTrigger.prototype.VariableChanged = _DWVariableTrigger_VariableChanged;
  2714. _DWTimeline.prototype.StartObject = _DW_58;
  2715. _DWTimeline.prototype.StopObject = _DW_59;
  2716. _DWTimeline.prototype.Update = _DW_5A;
  2717. _DWTimeline.prototype.Start = _DW_5B;
  2718. _DWTimeline.prototype.Stop = _DW_5C;
  2719. _DWTimelineTrack.prototype.Run = _DW_5D;
  2720. _DWTimelineTrack.prototype.Stop = _DW_5E;
  2721. _DWTimelineTrack.prototype.Kill = _DW_5F;
  2722. _DWTimelineTrack.prototype.Scan = _DW_60;
  2723. _DWTimelineTrack.prototype.Notify = _DW_61;
  2724. _DWAnimationPath.prototype.GetPoint = _DW_62;
  2725. _DWAnimation.prototype.Play = _DW_63;
  2726. _DWAnimation.prototype.Stop = _DW_64;
  2727. _DWAnimation.prototype.Pause = _DW_65;
  2728. _DWAnimation.prototype.Resume = _DW_66;
  2729. _DWAnimation.prototype.GetPos = _DW_67;
  2730. _DWAnimation.prototype.Finished = _DW_68;
  2731. _DWAnimationController.prototype.Add = _DW_69;
  2732. _DWAnimationController.prototype.Remove = _DW_6A;
  2733. _DWAnimationController.prototype.Update = _DW_6B;
  2734. _DWScrollAngleTransition.prototype.stop = _DWScrollAngleTransition_stop;
  2735. _DWScrollAngleTransition.prototype.gotoAndPlay = _DWScrollAngleTransition_gotoAndPlay;
  2736. _DWScrollAngleTransition.prototype.Update = _DWScrollAngleTransition_Update;
  2737. _DWScrollAngleTransition.prototype.IntersectEdge = _DWScrollAngleTransition_IntersectEdge;
  2738. _DW_drag_object = null;
  2739. _ILMEventObject.prototype._ILMEventObject = _ILMEventObject;
  2740. _ILMEventObject.prototype.__DW_root = this;
  2741. _ILMTreeObject.prototype = new _ILMEventObject();
  2742. _ILMTreeObject.prototype._ILMTreeObject = _ILMTreeObject;
  2743. _ILMGraphicalObject.prototype = new _ILMTreeObject();
  2744. _ILMGraphicalObject.prototype._ILMGraphicalObject = _ILMGraphicalObject;
  2745. _ILMButton.prototype = new _ILMGraphicalObject();
  2746. _ILMFrameSet.prototype = new _ILMGraphicalObject();
  2747. _ILMSlideshow.prototype = new _ILMGraphicalObject();
  2748. _ILMText.prototype = new _ILMGraphicalObject();
  2749. _ILMVideo.prototype = new _ILMGraphicalObject();
  2750. _ILMGlobal.prototype = new _ILMTreeObject();
  2751. _ILMGlobal.prototype._ILMGlobal = _ILMGlobal;
  2752. _ILMPage.prototype = new _ILMGlobal();
  2753. _ILMPage.prototype._ILMPage = _ILMPage;
  2754. Cursor2._visible = false;
  2755. _DWInitPublication("dressft",400,null,Cursor2,- 1,- 1,- 1,- 1,- 1,- 1,true,20,false);
  2756. _DWInitVariables(_DW_publication,["SCORE",0,false,"SCORE_VALUE",0,false,"SCORE_VALUE_TOTAL",0,false,"SCORE_VALUE_PERCENT",0,false,"SCORE_CORRECT",0,false,"SCORE_INCORRECT",0,false,"SCORE_TOTAL",0,false,"SCORE_PERCENT",0,false,"CHAPTER_PASSWORD","",false,"PUBLICATION_TIME",0,false,"SYSTEM_TIME_YEAR",0,false,"SYSTEM_TIME_MONTH",0,false,"SYSTEM_TIME_DATE",0,false,"SYSTEM_TIME_DAY",0,false,"SYSTEM_TIME_HOUR",0,false,"SYSTEM_TIME_MINUTE",0,false,"SYSTEM_TIME_SECOND",0,false,"SYSTEM_TIME_12HOUR",0,false,"SYSTEM_TIME_AMPM",0,false,"SYSTEM_DATE_FULL","",false,"SYSTEM_WIN_DIR","",false,"SYSTEM_WINSYS_DIR","",false,"SYSTEM_DOCUMENTS_DIR","",false,"SYSTEM_PROGRAMS_DIR","",false,"SYSTEM_USERNAME","",false,"SYSTEM_PUBLICATION_DIR","",false,"SYSTEM_CD_DRIVE","",false,"SYSTEM_TEMP_DIR","",false,"RADIO_GROUP_1_ID",0,false,"RADIO_GROUP_1_NAME","",false,"RADIO_GROUP_2_ID",0,false,"RADIO_GROUP_2_NAME","",false,"RADIO_GROUP_3_ID",0,false,"RADIO_GROUP_3_NAME","",false,"RADIO_GROUP_4_ID",0,false,"RADIO_GROUP_4_NAME","",false]);
  2757. _DWInitChapter(1,"Chapter 1",- 2,2,3);
  2758.